package com.mrdeer.user.convert;

import com.mrdeer.user.api.dto.resource.ApplicationDTO;
import com.mrdeer.user.api.entity.ResourceApplication;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 17:43
 */
@Mapper
public interface ResourceApplicationConvert {

    ResourceApplicationConvert INSTANCE = Mappers.getMapper(ResourceApplicationConvert.class);

    ApplicationDTO entity2Dto(ResourceApplication entity);

    ResourceApplication dto2Entity(ApplicationDTO dto);

    List<ApplicationDTO> entityList2Dto(List<ResourceApplication> bundle);
}
